package com.gao.controller;

import com.gao.pojo.Shuju;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

@Controller
public class wxpostController{
    @RequestMapping("/testJson")
    @ResponseBody
    //get微信发送的数据
    public String testJson(@RequestParam String username, @RequestParam String password){
        System.out.println(username);
        System.out.println(password);
        return "aaaa";
    }

    @RequestMapping(value = "/testJson3",method = {RequestMethod.POST})
    @ResponseBody
    public boolean testJson3(@RequestBody Shuju shuju) throws Exception {
        Map shit = shuju.getShit();
        for (Object s :
                shit.keySet()) {
            if (s == "wendu"){
                Object o = shit.get(s);
                System.out.println(s + "=" + o);
            }

        }

        String arrshebei = shuju.getArrshebei();

        return true;
    }

}